package com.jia.interviewPro;

/**
 * @program: Leetcode
 * @description:  https://leetcode-cn.com/problems/add-without-plus-lcci/
 * @author: STU756
 * @create: 2020-09-03 13:52
 */
public class Pro1701 {
    public int add(int a, int b) {
        while(b != 0) {
            int tmp = a ^ b;
            b = (a&b) << 1;
            a = tmp;
        }
        return a;
    }
}
